<% provide(:title , '注册') %>
<h1>新用户注册</h1>
<div class="row">
  <div class="span6 offset3">
    <%= form_for(@user) do |f|  %>
        <%= render 'shared/error_messages',object: f.object %>
        <%= f.label :name ,"名字"%>
        <%= f.text_field :name %>

        <%= f.label :email %>
        <%= f.text_field :email %>

        <%= f.label :password, "密码"%>
        <%= f.password_field :password %>

        <%= f.label :password_confirmation, "重复密码" %>
        <%= f.password_field :password_confirmation %>

        <%= f.submit "注册帐号", class: "btn btn-large btn-primary" %>
    <% end %>
  </div>
</div>
